home *** CD-ROM | disk | FTP | other *** search
-
-
-
- bbbbffffssss((((1111)))) bbbbffffssss((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- _bbbb_ffff_ssss - big file scanner
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _bbbb_ffff_ssss [ _---- ] _f_i_l_e
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _bbbb_ffff_ssss command is similar to _eeee_dddd except that it is read-only and
- processes much larger files. Files can be up to 1024K bytes and 32K
- lines, with up to 512 bytes, including new-line, per line (255 for 16-bit
- machines). _bbbb_ffff_ssss is usually more efficient than _eeee_dddd for scanning a file,
- since the file is not copied to a buffer. It is most useful for
- identifying sections of a large file where the _cccc_ssss_pppp_llll_iiii_tttt command can be used
- to divide it into more manageable pieces for editing.
-
- _bbbb_ffff_ssss processes supplementary code set characters in _f_i_l_e, and recognizes
- supplementary code set characters in the _l_a_b_e_ls given to the _::::, _xxxx_bbbb, _xxxx_bbbb_nnnn,
- and _xxxx_bbbb_zzzz commands (see below) according to the locale specified in the
- _LLLL_CCCC______CCCC_TTTT_YYYY_PPPP_EEEE environment variable (see _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5)). In regular
- expressions, pattern searches are performed on characters, not bytes, as
- described on _eeee_dddd(1).
-
- Normally, the size in bytes of the file being scanned is printed, as is
- the size of any file written with the _wwww command. The optional _----
- suppresses printing of sizes. Input is prompted with _**** if _PPPP and a
- carriage return are typed, as in _eeee_dddd. Prompting can be turned off again
- by inputting another _PPPP and carriage return. Messages are given in
- response to errors if prompting is turned on.
-
- All address expressions described under _eeee_dddd are supported. In addition,
- regular expressions may be surrounded with two symbols besides _//// and _????:
- _>>>> indicates downward search without wrap-around, and _<<<< indicates upward
- search without wrap-around. There is a slight difference in mark names:
- only the ASCII characters _aaaa through _zzzz may be used, and all 26 marks are
- remembered.
-
- The _eeee, _gggg, _vvvv, _kkkk, _pppp, _qqqq, _wwww, _====, _!!!! and null commands operate as described
- under _eeee_dddd. Commands such as _----_----_----, _++++_++++_++++_----, _++++_++++_++++_====, _----_1111_2222, and _++++_4444_pppp are accepted.
- Note that _1111_,,,,_1111_0000_pppp and _1111_,,,,_1111_0000 both print the first ten lines. The _ffff command
- only prints the name of the file being scanned; there is no remembered
- filename. The _wwww command is independent of output diversion, truncation,
- or crunching (see the _xxxx_oooo, _xxxx_tttt, and _xxxx_cccc commands, below). The following
- additional commands are available:
-
- _xxxx_ffff _f_i_l_e Further commands are taken from the named _f_i_l_e. When an
- end-of-file is reached, an interrupt signal is received or
- an error occurs, reading resumes with the file containing
- the _xxxx_ffff. The _xxxx_ffff commands may be nested to a depth of 10.
-
- _xxxx_nnnn List the marks currently in use (marks are set by the _kkkk
- command).
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- bbbbffffssss((((1111)))) bbbbffffssss((((1111))))
-
-
-
- _xxxx_oooo [_f_i_l_e] Further output from the _pppp and null commands is diverted to
- the named _f_i_l_e, which, if necessary, is created with mode
- 666 (readable and writable by everyone), unless your _uuuu_mmmm_aaaa_ssss_kkkk
- setting dictates otherwise; see _uuuu_mmmm_aaaa_ssss_kkkk(1). If _f_i_l_e is
- missing, output is diverted to the standard output. Note
- that each diversion causes truncation or creation of the
- file.
-
- _:::: _l_a_b_e_l This positions a _l_a_b_e_l in a command file. The _l_a_b_e_l is
- terminated by new-line, and blanks between the _:::: and the
- _l_a_b_e_l are ignored. This command may also be used to
- insert comments into a command file, since labels need not
- be referenced. _l_a_b_e_l may contain supplementary code set
- characters.
-
- ( _.... , _.... )_xxxx_bbbb/_r_e_g_u_l_a_r _e_x_p_r_e_s_s_i_o_n/_l_a_b_e_l A jump (either upward or
- downward) is made to _l_a_b_e_l if the command succeeds. It
- fails under any of the following conditions:
-
- 1. Either address is not between _1111 and _$$$$.
- 2. The second address is less than the first.
- 3. The regular expression does not match at least one
- line in the specified range, including the first and
- last lines.
-
- On success, _.... is set to the line matched and a jump is
- made to _l_a_b_e_l. This command is the only one that does not
- issue an error message on bad addresses, so it may be used
- to test whether addresses are bad before other commands
- are executed. Note that the command
-
- _xxxx_bbbb_////_^^^^_//// _llll_aaaa_bbbb_eeee_llll
-
- is an unconditional jump.
-
- The _xxxx_bbbb command is allowed only if it is read from
- someplace other than a terminal. If it is read from a
- pipe only a downward jump is possible. _l_a_b_e_l may contain
- supplementary code set characters.
-
- _xxxx_tttt _n_u_m_b_e_r Output from the _pppp and null commands is truncated to at
- most _n_u_m_b_e_r displayed columns. The initial number is 255.
-
- _xxxx_vvvv[_d_i_g_i_t][_s_p_a_c_e_s][_v_a_l_u_e]
- The variable name is the specified _d_i_g_i_t following the _xxxx_vvvv.
- The commands _xxxx_vvvv_5555_1111_0000_0000 or _xxxx_vvvv_5555 _1111_0000_0000 both assign the value _1111_0000_0000
- to the variable _5555. The command _xxxx_vvvv_6666_1111_,,,,_1111_0000_0000_pppp assigns the
- value _1111_,,,,_1111_0000_0000_pppp to the variable _6666. To reference a variable,
- put a _%%%% in front of the variable name. For example, using
- the above assignments for variables _5555 and _6666:
-
- _1111_,,,,_%%%%_5555_pppp
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- bbbbffffssss((((1111)))) bbbbffffssss((((1111))))
-
-
-
- _1111_,,,,_%%%%_5555
- _%%%%_6666
-
- all print the first 100 lines.
-
- _gggg_////_%%%%_5555_////_pppp
-
- globally searches for the characters _1111_0000_0000 and prints each
- line containing a match. To escape the special meaning of
- _%%%%, a _\\\\ must precede it.
-
- _gggg_////_""""_...._****_[[[[_cccc_dddd_ssss_]]]]_////_pppp
-
- could be used to match and list lines containing a _pppp_rrrr_iiii_nnnn_tttt_ffff
- of characters, decimal integers, or strings.
-
- Another feature of the _xxxx_vvvv command is that the first line
- of output from a UNIX system command can be stored into a
- variable. The only requirement is that the first
- character of _v_a_l_u_e be an _!!!!. For example:
-
- _...._wwww _jjjj_uuuu_nnnn_kkkk
- _xxxx_vvvv_5555_!!!!_cccc_aaaa_tttt _jjjj_uuuu_nnnn_kkkk
- _!!!!_rrrr_mmmm _jjjj_uuuu_nnnn_kkkk
- _!!!!_eeee_cccc_hhhh_oooo _""""_%%%%_5555_""""
- _xxxx_vvvv_6666_!!!!_eeee_xxxx_pppp_rrrr _%%%%_6666 _++++ _1111
-
- puts the current line into variable _5555, prints it, and
- increments the variable _6666 by one. To escape the special
- meaning of _!!!! as the first character of _v_a_l_u_e, precede it
- with a _\\\\.
-
- _xxxx_vvvv_7777_\\\\_!!!!_dddd_aaaa_tttt_eeee
-
- stores the value _!!!!_dddd_aaaa_tttt_eeee into variable _7777.
-
- _xxxx_bbbb_zzzz _l_a_b_e_l
-
- _xxxx_bbbb_nnnn _l_a_b_e_l These two commands test the last saved _r_e_t_u_r_n _c_o_d_e from
- the execution of a UNIX system command (_!!!!_c_o_m_m_a_n_d) or
- nonzero value, respectively, to the specified label.
- _l_a_b_e_l may contain supplementary code set characters. The
- two examples below both search for the next five lines
- containing the string _ssss_iiii_zzzz_eeee.
-
- _xxxx_vvvv_5555_5555
- _:::: _llll
- _////_ssss_iiii_zzzz_eeee_////
- _xxxx_vvvv_5555_!!!!_eeee_xxxx_pppp_rrrr _%%%%_5555 _---- _1111
- _!!!!_iiii_ffff _0000_%%%%_5555 _!!!!_==== _0000 _eeee_xxxx_iiii_tttt _2222
- _xxxx_bbbb_nnnn _llll
- _xxxx_vvvv_4444_5555
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-
-
-
- bbbbffffssss((((1111)))) bbbbffffssss((((1111))))
-
-
-
- _:::: _llll
- _////_ssss_iiii_zzzz_eeee_////
- _xxxx_vvvv_4444_!!!!_eeee_xxxx_pppp_rrrr _%%%%_4444 _---- _1111
- _!!!!_iiii_ffff _0000_%%%%_4444 _==== _0000 _eeee_xxxx_iiii_tttt _2222
- _xxxx_bbbb_zzzz _llll
-
- _xxxx_cccc [_s_w_i_t_c_h] If _s_w_i_t_c_h is _1111, output from the _pppp and null commands is
- crunched; if _s_w_i_t_c_h is _0000 it is not. Without an argument,
- _xxxx_cccc reverses _s_w_i_t_c_h. Initially _s_w_i_t_c_h is set for no
- crunching. Crunched output has strings of tabs and blanks
- reduced to one blank and blank lines suppressed.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- csplit(1), ed(1), umask(1), regexp(5).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- _???? for errors in commands, if prompting is turned off. Self-explanatory
- error messages when prompting is on.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 4444
-
-
-
-